﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Chapter09.Code03.Snippet06
{
    public class Demo
    {
        public static void Begin()
        {
            {
                MyClass myObj = new MyClass();
                myObj.DoSomething();
            }
            {
                MyClass myObj = new MyClass();
                IMyInterface myInt = myObj;
                myObj.DoSomething();
            }
        }
    }
}
